<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Office 515158 2011 OA办公系统</title>
</head>
<body class="bodycolor">
<center>
<div style="text-align:center; width:600px; font-size:14px;">
<span style="font-size:24px"><?=$blog["title"]?></span>
<br><br><br>
姓名：<?=GET_INC_USER_NAME($blog["uid"])?>&nbsp;&nbsp;&nbsp;&nbsp;
部门：<?=get_work_db($blog["id"],'_cccf')?>&nbsp;&nbsp;&nbsp;&nbsp;
流水号：<?=$blog["number"]?>
<br><br>
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="164" height="35" align="center">加班日期</td>
      <td width="160" height="35" align="center" >加班时间</td>
      <td width="198" height="35" align="center" >加班时长
      （估值）</td>
      <td width="260" height="35" align="center" >加班原因</td>
    </tr>
	<?php
	//获取固定表单的数据
	$_fdsafd=unserialize(get_work_db($blog["id"],'_fdsafd'));
	$_43543ffdsfds=unserialize(get_work_db($blog["id"],'_43543ffdsfds'));
	$_g43fdfsd=unserialize(get_work_db($blog["id"],'_g43fdfsd'));
	$_fdsf43243243=unserialize(get_work_db($blog["id"],'_fdsf43243243'));
	?>
	<? for($i=0;$i<6;$i++){?>
    <tr>
      <td width="164" height="35"><?=$_fdsafd[$i]?></td>
      <td width="160" height="35"><?=$_43543ffdsfds[$i]?></td>
      <td width="198" height="35"><?=$_g43fdfsd[$i]?></td>
      <td width="260" height="35"><?=$_fdsf43243243[$i]?></td>
    </tr>
	<?}?>
    <tr>
      <td height="35" colspan="2" align="center">加班总时长（估值）</td>
      <td height="35" colspan="2"><?=get_work_db($blog["id"],'_3454fdsffdrewr')?></td>
    </tr>
</table>
<br>

<?
global $db;
$query = $db->query("SELECT * FROM ".DB_TABLEPRE."workclass_flow where template_id='".$blog["worktemplate"]."' and number>1 ORDER BY number Asc");
	while ($row = $db->fetch_array($query)) {
$personnel = $db->fetch_one_array("SELECT * FROM ".DB_TABLEPRE."workclass_personnel where flowid='".$row['id']."' and workclassid='".$blog['id']."' ORDER BY id Asc");
//审批人
//批示
if($personnel['lnstructions']!=''){
	$lnstructions=$personnel['lnstructions'];
}else{
	$lnstructions='还没有审批!';
}
?>
<?=$row['title']?>：<?=$personnel['name']?>&nbsp;&nbsp;<?=$lnstructions?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日期：<?=$personnel['approvaldate']?><br><br>

<?}?>
</div>
</center>
</body>
</html>